<?php
/* @file del-problem.php
 * @author Liuexp
 * @description php interface for deleting problem
 */


require_once("helper.php");
if(!InGroup(GROUP_DEL_PROBLEM)){
	MsgBox(ACCESS_DENIED);
	exit();
}
$volume_name=$_GET['volume'];
$name=$_GET['problem'];
$bean=R::findOne("problem","name='$name' AND volume_name='$volume_name'");
R::trash($bean);
MsgBox(SUCC);
?>
